/**
 * Created by Administrator on 2017/6/6.
 */
import tipHtml from './index.html';
export default ()=>{
  return{
    restrict: 'EA',
    template: tipHtml,
    transclude: {
      'title':'modalTitle',
      'body':'modalBody'
    },
    scope:{
      modalOptions:'=',
      showAttr:'='
    },
    link: ($scope, $el)=>{
      $scope.closeClick = ()=>{
        $scope.showAttr = !$scope.showAttr;
      };
    }
  }
}